package com.song.NettyTest;

import com.song.api.HelloObject;
import com.song.api.HelloService;
import com.song.autoscanner.Service;
import lombok.extern.slf4j.Slf4j;

/**
 * 服务端对通用接口的一个 hello方法进行实例化
 */
@Slf4j(topic = "c.HelloServiceImpl")
@Service
public class HelloServiceImpl implements HelloService {

    @Override
    public String hello(HelloObject object) {
        log.info("接收到了：{}", object.getMessage());
        return "这是调用的返回值，id = " + object.getId();
    }
}
